
#include <stddef.h>

#include "i386/kernel/timer.h"
#include "i386/arch_hooks.h"
#include "linux/interrupt.h"
#include "linux/signal.h"
#include "linux/irq.h"
#include "linux/cpumask.h"

static struct irqaction irq0 = {
  .handler = timer_interrupt,
  .flags = SA_INTERRUPT,
  .mask = 0,
  .name = "timer",
  .dev_id = NULL,
  .next = NULL,
  .irq = 0,
};

void __init time_init_hook(void) {
  /*
   * 设置中断0的处理函数
   */
  setup_irq(0, &irq0);
}
